package com.designpatterns.builder.director;

import com.designpatterns.builder.builder.PersonBuilder;
import com.designpatterns.builder.product.Person;

/**
 * PersonDirector Class
 *
 * @author Haiqi.Wang
 * @since 2013-5-30下午5:35:26
 */
public class PersonDirector {
	
	/**
	 * constuctPerson Method
	 * @param pb PersonBuilder Object
	 * @return Person Object
	 */
	public Person constructPerson(PersonBuilder pb){
		pb.buildHead();
		pb.buildBody();
		pb.buildFoot();
		return pb.buildPerson();
	}
	
}
